/**
 * 
 */
package com.laivi.basic.model.orm;

import com.laivi.basic.type.DBType;

/**
 * @author laivi.zhu@gmail.com
 * @date 2014-7-5
 * description:
 */
public class GenerateTable implements IGenerateTable {
	private IGenerateTable generate;
	
	public GenerateTable(DBType type) {
		switch(type){
		case MYSQL:
			generate=new GenerateMysqlTable();
			break;
		case SQLSERVER:
			generate=new GenerateSQLServerTable();
			break;
		case ORACLE:
			break;
		}
	}

	@Override
	public String generateCreate(Class<?> klass) {
		return generate.generateCreate(klass);
	}

	@Override
	public String generateUpdate(Class<?> klass) {
		return generate.generateUpdate(klass);
	}

	@Override
	public String generateComments(Class<?> klass) {
		return generate.generateComments(klass);
	}

	
}
